--
-- @Author:      name
-- @DateTime:    2018-04-20 21:48:12
-- @Description: 节点起动与集群配置读取


local skynet = require "skynet"
local config = require("configquery")

skynet.start(function()
	skynet.uniqueservice("confcenter")

	local server_setting = config.server_setting
	local console_port = server_setting.console_port
	--控制台服务
	skynet.uniqueservice("console_service", console_port.web_server)	

	--主服务
	local manager = skynet.uniqueservice("manager_service")
	skynet.call(manager, "lua", "start")

    skynet.exit()

end)

